<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>

<script type="text/javascript"
	src="/webjars/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript"
	src="/webjars/sockjs-client/1.0.2/sockjs.min.js"></script>


<script>

$(document).ready(function(){
	var sock = new SockJS("http://172.26.142.138:8080/myHandler");
	sock.onopen = function() {
	     console.log('open');
	     sock.send('test');
	 };
	 sock.onmessage = function(e) {
	     console.log('message', e.data);
	 };
	 sock.onclose = function() {
	     console.log('close');
	 };

/* 	 sock.close(); */
});
</script>

</head>

<body>

</body>
</html>